package cn.starrysky108.simpleerp.core.exception;

import cn.starrysky108.simpleerp.core.enums.ResultCodeEnum;
import io.micrometer.core.lang.Nullable;

/**
 * @author Carl Lee
 */
public class StorageException extends ApiException {
    private String fileName;

    public StorageException(ResultCodeEnum codeEnum, @Nullable String fileName) {
        super(codeEnum, fileName);
        this.fileName = fileName;
    }

    public StorageException(String message, Throwable cause, @Nullable String fileName) {
        super(message, cause);
        this.fileName = fileName;
    }

    public StorageException(ResultCodeEnum codeEnum, Throwable cause, @Nullable String fileName) {
        super(codeEnum, cause);
    }

    public StorageException(ResultCodeEnum codeEnum, Throwable cause) {
        super(codeEnum, cause);
    }
}
